﻿import api from './request.js'

var apis = {
  // 查询系列课学习路线[
  getQueryLearnWay: (params) => api.post('/hour/queryLearnWay', params),
  // 立即参与砍价
  bargainingInsertBargaining: (params) => api.post('/bargaining/insertBargaining', params),
  //热门搜索记录
  searchQueryHotSearch: (params) => api.post('/search/queryHotSearch', params),
  //首页导航
  menuitemQueryHomeTop: (params) => api.post('/menuitem/queryHomeTop', params),
  // 首页全部数据
  menuitemQueryMenuItem: (params) => api.post('/menuitem/queryMenuItem', params),
  //选项首页查看全部的行业
  industryQueryAllStatusApi: (params) => api.post('/industry/queryAllStatusApi', params),
  // 课程 获取行业下拉框数据
  busIness: (params) => api.post('/industry/queryAllIndustryApi', params),
  // 搜索功能
  searchSearchQuery: (params) => api.post('/search/searchQuery', params),
  //  定制专属课程
  curriculumQuerySeriesCurriculum: (params) => api.post('/curriculum/querySeriesCurriculum', params),
  // 查询行业中的课程
  searchCourse: (params) => api.post('/curriculum/queryCurriculum', params),
  industryUpdUserIndustry: (params) => api.post('/industry/updUserIndustry', params),
  //获取招聘信息
  recruitmentQueryRecruitment: (params) => api.post('/recruitment/queryRecruitment', params),
  //根据id查询招聘详情
  recruitmentQueryRecruitmentById: (params) => api.post('/recruitment/queryRecruitmentById', params),
  //推荐课程换一换
  curriculumReplaceCurriculumRecommend: (params) => api.post('/curriculum/replaceCurriculumRecommend', params),
  // 就业搜索
  searchSearchRecruitment: (params) => api.post('/search/searchRecruitment', params),
  //会员课程banner
  bannerQueryBanner: (params) => api.post('/banner/queryBanner', params),
  // 获取会员课程
  curriculumQueryVipCurriculum: (params) => api.post('/curriculum/queryVipCurriculum', params),
  // 我的行业证书
  certificateQueryMyIndustryAll: (params) => api.post('/certificate/queryMyIndustryAll', params),
  //根据行业查证书
  certificateQueryCertificateByIndustry: (params) => api.post('/certificate/queryCertificateByIndustry', params),
  //证书详情
  certificateQueryById: (params) => api.post('/certificate/queryById', params),
  // 根据用户证书id查询用户证书详情
  userCertificationQueryById: (params) => api.post('/userCertification/queryById', params),
  // 根据证书名称搜索证书
  certificateQueryCertificateByName: (params) => api.post('/certificate/queryCertificateByName', params),
  // 获取薪资范围/经验要求数据
  recruitmentQueryDictionary: (params) => api.post('/recruitment/queryDictionary', params),
  // 行业下拉
  industryQueryAllIndustryApi: (params) => api.post('/industry/queryAllIndustryApi', params),
  // 邀请好友获取头像等信息
  getInvite: (params) => api.post('/user/queryUserInfoForInvite', params),
  // 根据课程ID查询课程详细信息
  searchCourseMessage: (params) => api.post('/curriculum/queryCurriculumById', params),
  // 获取课程视频
  getCourseVideo: (params) => api.post('/file/playVideoForFree', params),
  // 播放视频授权数据获取
  getAuthorization: (params) => api.post('/file/playVideo', params),
  // 课程目录查询课时
  queryClasses: (params) => api.post('/hour/queryHours', params),
  // 课程收藏
  getCollect: (params) => api.post('/collection/collectionButton', params),
  // 课程取消收藏
  cancelCollect: (params) => api.post('/collection/collectionCancel', params),
  // 直播详情页
  searchLive: (params) => api.post('/live/queryLiveById', params),
  // 通过直播id查询推荐课程及信息
  queryByLiveId: (params) => api.post('/liveCurriculum/queryByLiveId', params),
  // 小程序下单信息：查询课程价格、用户余额、可用优惠卷（下单前调用）（小程序）【张金龙】
  buypurchase: (params) => api.post('/order/weMPQueryOrderInfo', params),
  // 小程序绑定手机号[李国鹏]
  binding: (params) => api.post('/user/appletBindPhone', params),
  // 小程序登录注册
  getLogin: (params) => api.post('/user/appletAuth', params),
  // 获取回答问题后专属计划课程
  getOpenCourse: (params) => api.post('/curriculum/querySeriesCurriculum', params),
  // 学习时长
  planQueryUserLearnTimeInThisWeek: (params) => api.post('/plan/queryUserLearnTimeInThisWeek', params),
  // 我的课程
  curriculumQueryUserCurriculum: (params) => api.post('/curriculum/queryUserCurriculum', params),
  // 获取用户本周学习日历
  planQueryUserLearnStateOnThisWeek: (params) => api.post('/plan/queryUserLearnStateOnThisWeek', params),
  // 用户今日应学课程
  planQueryUserLearnCurriculumToday: (params) => api.post('/plan/queryUserLearnCurriculumToday', params),
  // 用户目标证书
  planQueryGoalCertificate: (params) => api.post('/plan/queryGoalCertificate', params),
  // 计划页课程
  curriculumQueryPlanCurriculum: (params) => api.post('/curriculum/queryPlanCurriculum', params),
  //用户查看自己的学习计划
  planQueryUserLearnPlan: (params) => api.post('/plan/queryUserLearnPlan', params),
  // 修改学习计划
  planUpdateLearnPlan: (params) => api.post('/plan/updateLearnPlan', params),
  // 查询系统参数(启动页,邀请,完善个人信息,购买课程获得的学到币)
  querySystem: (params) => api.post('/setting/querySettings', params),
  // 查询购买课程时可使用的优惠卷
  getCoupon: (params) => api.post('/coupons/queryByUpCondition', params),
  // 兑换优惠卷【张金龙】
  getCdkey: (params) => api.post('/coupons/convertCoupons', params),
  // 购买课程(预支付-微信小程序调用此接口)【张金龙】
  getprepayment: (params) => api.post('/order/weMPPurchaseCourse', params),
  // 购买课程，根据订单号支付（微信支付宝）
  getpayByOrder: (params) => api.post('/order/payByOrder', params),
  // 购买课程-余额支付订单-免费领取-小程序调用
  getpayMoneyByOrderApplet: (params) => api.post('/order/payMoneyByOrderApplet', params),
  // 小程序手机号解密[李国鹏]
  getberdecode: (params) => api.post('/user/appletDecodePhone', params),
  // 投递简历
  getSendsign: (params) => api.post('/resume/deliveryResume', params),
  // 上传头像
  gethead: (params) => api.post('/file/upload', params),
  // 获取登录用户信息
  getuserInfo: (params) => api.post('/user/getCurrUser', params),
  // 修改用户资料信息
  remuserInfo: (params) => api.post('/user/updateUser', params),
  // 用户发送反馈意见
  getCouple: (params) => api.post('/opinion/userChat', params),
  // 获取OSS授权[
  getStsOss: (params) => api.post('/file/getOssToken', params),
  // 发送登录验证码【王洋】
  getUserNumbercode: (params) => api.post('/user/send', params),
  // 验证码注册 / 登录（绑定微信、iosId）
  getuserCodeRegister: (params) => api.post('/user/codeRegister', params),
  // 我的
  // 1.查询用户优惠券记录
  couponsQueryAll: (params) => api.post('/coupons/queryAll', params),
  //2.查询系统参数
  settingQuerySettings: (params) => api.post('/setting/querySettings', params),
  //3.查询用户余额记录
  moneyGetUserMoneyOrder: (params) => api.post('/money/getUserMoneyOrder', params),

  //4.查询用户收藏的课程
  curriculumQueryUserCollectCurriculum: (params) => api.post('/curriculum/queryUserCollectCurriculum', params),
  //5.订单
  orderGetUserOrderList: (params) => api.post('/order/getUserOrderList', params),
  //6.平台证书
  userCertificationQueryAppCer: (params) => api.post('/userCertification/queryAppCer', params),
  //6.我的证书
  userCertificationQueryUserCer: (params) => api.post('/userCertification/queryUserCer', params),
  //7.上传证书
  userCertificationInsert: (params) => api.post('/userCertification/insert', params),
  //8.根据用户证书id查询证书详情
  userCertificationQueryById: (params) => api.post('/userCertification/queryById', params),
  //9.取消订单
  orderCancelOrder: (params) => api.post('/order/cancelOrder', params),
  //10.会员课程
  curriculumQueryVipCurriculum: (params) => api.post('/curriculum/queryVipCurriculum', params),
  //11.会员开通记录
  vipGetVipList: (params) => api.post('/vip/getVipList', params),
  //12.砍价活动页面查询
  bargainingQueryBargainingByUser: (params) => api.post('/bargaining/queryBargainingByUser', params),
  //13.参与砍价
  bargainingInsertBargaining: (params) => api.post('/bargaining/insertBargaining', params),
  //14.砍价功能
  bargainingBargaining: (params) => api.post('/bargaining/bargaining', params),
  //15.取消会员订单
  vipcancelVipOrder: (params) => api.post('/vip/cancelVipOrder', params),
  //16.开通会员
  vipOpenVipByWechatApplet: (params) => api.post('/vip/openVipByWechatApplet', params),
  //17.购买课程
  orderPayByOrderJsAPIApplet: (params) => api.post('/order/payByOrderJsAPIApplet', params),
  //18.免费领取课程
  orderPayMoneyByOrder: (params) => api.post('/order/payMoneyByOrder', params),
  //19.更换手机号
  userUpdateUserPhone: (params) => api.post('/user/updateUserPhone', params),
  //20.会员详情页
  vipGetUserVipInfo:(params)=>api.post('/vip/getUserVipInfo',params),
  //20.删除手机号
  phone:(params)=>api.post('/file/deleteUser',params),

  vipGetUserVipInfo: (params) => api.post('/vip/getUserVipInfo', params),
  	//查询全部专题
  specialQueryById: (params) => api.post('/special/queryById', params),
  // 问题 保存结果
  addUserRecord: (params) => api.post('/user/addUserRecord', params),
  // 搜索功能下展示全部课程搜索结果
  searchSearchNews:(params)=>api.post('/search/searchNews',params),
  searchSearchRecruitment:(params)=>api.post('/search/searchRecruitment',params),
  searchSearchCurriculum:(params)=>api.post('/search/searchCurriculum',params),
  // 获取指定key的系统设置
  settingQuerySettingByKey:(params)=>api.post('/setting/querySettingByKey',params),
  // 查询除用户关注行业的其他行业
  certificateQueryOtherIndustry:(params)=>api.post('/certificate/queryOtherIndustry',params),
}


module.exports = {
  apis: apis
}